﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LocalizedSample
{
    class Program
    {
        static void Main(string[] args)
        {
            LocalizedDbContext dbContext = new LocalizedDbContext();
            Question q = new Question();
            q.QuestionId = 1;
            q.Title = "English";

            //DbEntityEntry entry = dbContext.Entry(q);
            ////dbContext.Set<Question>().Attach(q);
            //entry.State = EntityState.Modified;

            Console.WriteLine(dbContext.Questions.Where(m => m.QuestionId == 1).FirstOrDefault().Title);
            //dbContext.Questions.Add(q);
            dbContext.SaveChanges();
        }
    }
}
